const { http } = uni.$u

// 获取客户列表
export const getCustomerList = params => http.get('/app-api/orders/list', { params })

// 获取客户列表
export const getWarrantList = params => http.get('/app-api/orders/warrant-list', { params })


//转权证
export const toWarrant = data => http.post('/app-api/hutai/user-tables-audit/data/transfer-warrant', data )


//订单详情
export const getCustomerDetail = params => http.get('/app-api/orders/info', { params })
//完善资料
export const dataList = params => http.get('/app-api/orders/dataList', { params })

//完善资料-身份证号信息
export const updateIdCard = data => http.post('/app-api/mini/update/idCard', data )

//获得公示表类目选项
export const getPublicitySelectListByClassName = data => http.get('/app-api/mini/getPublicitySelectListByClassName', {data} )


//业务员
//获取驳回选项
export const getCantPassList = data => http.get('/app-api/orders/dataLists', {data} )
//驳回选项重新提交
export const resetUp = data => http.post('/app-api/hutai/user-tables-audit/update', data )

//权证
//驳回选项
export const cantPassSelect = data => http.put('/app-api/hutai/user-tables-audit/data/verify', data )
//审核流程查询
export const getFlowPath = data => http.get('/app-api/hutai/order-process-record/list/by/order', {data} )
//保存审核流程步骤
export const saveFlowPath = data => http.post('/app-api/hutai/order-process-record/create', data )
//保存审核结单
export const finishFlowPath = data => http.post('/app-api/hutai/order-process-record/finish', data )
//准入匹配
export const getCheckProductAccess = data => http.get('/app-api/mini/my/getCheckProductAccess', {data} )